package com.xingkeduo.dto.transter.activitystorelist;

import com.alibaba.fastjson.JSONObject;
import com.xingkeduo.utils.DateUtils;

import lombok.Data;

@Data
public class ActivityStoreListParameterDto {
	private String f_user_id;	
	private	String total_price;
	private String store_id;	
	private String service_type;	
	private String time;
	private String token;	
	private String mobile_type;	
	private String admin_id;//：发型师ID，
	private String appointment_date;//：预约时刻
	private String appointment_time;//：预约时刻
	
	
	public String covert() {
		JSONObject json =new JSONObject();
		json.put("storeId",store_id);
		json.put("hairdresserId",admin_id);
		json.put("userId",f_user_id);
		json.put("hairServiceId",service_type);
		json.put("hairServiceOriginPrice",total_price);
		json.put("appointmentDate",DateUtils.formatDate(DateUtils.parseDate(appointment_date+" "+appointment_time),DateUtils.DEFAULT_DATE_TIME_FORMAT));//预约时间
		return json.toJSONString();
    }
}
